define(function(require, exports, module) {
	'use strict';
    


    (function () {
        var ctrlNum = 7;
        $.widget('rk.wrStatistics_' + ctrlNum + 'PopupCtrl', $.rk.wrStatisticsPopupCtrl, {
            _create: function () {
                var me = this;
                var elem = me.element;
            },
            _init: function () {
                var me = this;
                me._super();
            },
            _handleData: function (data) {
                var me = this;
                var elem = me.element;

                //最后一条数据
                var opportunities = data.opportunities;
                if (opportunities.length > 0)opportunities[opportunities.length - 1].isLast = true;
                for (var i = 0, len = opportunities.length; i < len; i++) {
                    var entity = opportunities[i];
                    var money = entity.money;
                    entity.moneyText = numeral(money).format('0,0') + workreportService.getCurrencyUnit();
                }

                return data;
            }
        });
    })()

});
